package com.wm.strategy;

/**
 * @ClassName: Context
 * @Description: 核心类，切换策略模式
 * @Author: WM
 * @Date: 2023/2/24 19:50
 */
public class Context {
    private TravelStrategy travelStrategy;

    public TravelStrategy getTravelStrategy() {
        return travelStrategy;
    }

    public void setTravelStrategy(TravelStrategy travelStrategy) {
        this.travelStrategy = travelStrategy;
    }

    public void travelModel() {
        this.travelStrategy.travelModel();
    }
}
